/*
 * @Author       : Sayolit
 * @Date         : 2023-01-10 12:08:22
 * @LastEditors  : Sayolit
 * @LastEditTime : 2023-01-16 14:01:15
 * @FilePath     : exampleStore.js
 * @Description  :
 * Copyright 2023 Sayolit, All Rights Reserved.
 * 2023-01-10 12:08:22
 */
const userStore = {
	namespaced: true,
	state: () => {
		return {
			username: 'Sayolit',
			age: 19,
			currentIndex: -1,
			currentActiveNameArr: [],
			currentParam: null,
			isCollapseMenu: false,
			menus: [
				{
					name: 'Waifu Api',
					icon: 'ios-analytics',
					// 不分组的配置写这里
					item: [],
					// 分组的配置
					group: [],
					// 子菜单配置写这里
					subItem: [
						{
							name: 'sfw',
							title: 'SFW',
							item: [
								{ name: 'waifu' },
								{ name: 'neko' },
								{ name: 'shinobu' },
								{ name: 'megumin' },
								{ name: 'bully' },
								{ name: 'cuddle' },
								{ name: 'cry' },
								{ name: 'hug' },
								{ name: 'awoo' },
								{ name: 'kiss' },
								{ name: 'lick' },
								{ name: 'pat' },
								{ name: 'smug' },
								{ name: 'bonk' },
								{ name: 'yeet' },
								{ name: 'blush' },
								{ name: 'smile' },
								{ name: 'wave' },
								{ name: 'highfive' },
								{ name: 'handhold' },
								{ name: 'nom' },
								{ name: 'bite' },
								{ name: 'glomp' },
								{ name: 'slap' },
								{ name: 'kill' },
								{ name: 'kick' },
								{ name: 'happy' },
								{ name: 'wink' },
								{ name: 'poke' },
								{ name: 'dance' },
								{ name: 'cringe' },
							],
						},
						{
							name: 'nsfw',
							title: 'NSFW',
							item: [
								{ name: 'waifu' },
								{ name: 'neko' },
								{ name: 'trap' },
								{ name: 'blowjob' },
							],
						},
					],
				},
				{
					name: 'MirlKoi API',
					icon: 'ios-filing',
					// 不分组的配置写这里
					item: [],
					// 分组的配置
					group: [
						{
							// 组名
							title: 'Number',
							// 该分组下的选项option名字
							item: [
								{ name: '20' },
								{ name: '40' },
								{ name: '60' },
								{ name: '80' },
							],
						},
					],
					// 子菜单配置写这里
					subItem: [],
				},
				{
					name: 'XXX API',
					icon: 'ios-cog',
					// 不分组的配置写这里
					item: [{ name: 'Option XXX' }],
					// 分组的配置
					group: [],
					// 子菜单配置写这里
					subItem: [],
				},
			],
		}
	},
	mutations: {
		changeUsername(state, param) {
			state.username = param
		},
	},
	getters: {
		age(state) {
			return state.age
		},
	},
	actions: {},
}

export default userStore
